.help-page {
  padding: 24px;

  .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;

    .header-left {
      h1 {
        margin: 0;
        font-size: 28px;
        color: rgba(0, 0, 0, 0.88);
      }

      p {
        margin: 8px 0 0;
        color: rgba(0, 0, 0, 0.45);
        font-size: 14px;
      }
    }

    .header-right {
      display: flex;
      gap: 12px;
    }
  }

  .category-card,
  .filter-card {
    margin-bottom: 16px;

    .ant-tabs {
      .ant-tabs-nav {
        margin-bottom: 0;
      }
    }
  }

  .filter-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .posts-card {
    .help-card {
      height: 100%;
      transition: all 0.3s ease;
      border-radius: 8px;
      overflow: hidden;

      &:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
      }

      .ant-card-body {
        padding: 20px;
      }

      .help-type-badge {
        text-align: center;
        margin-bottom: 16px;
        
        .ant-tag {
          font-weight: 600;
        }
      }

      .help-title {
        font-size: 16px;
        font-weight: 600;
        color: rgba(0, 0, 0, 0.88);
        margin: 0 0 12px;
        line-height: 1.5;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        min-height: 48px;
      }

      .help-content {
        color: rgba(0, 0, 0, 0.65);
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 16px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        min-height: 67px;
      }

      .help-info {
        display: flex;
        gap: 12px;
        align-items: center;
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid #f0f0f0;

        .help-info-item {
          display: flex;
          align-items: center;
          gap: 6px;
          color: rgba(0, 0, 0, 0.45);
          font-size: 13px;

          .anticon {
            font-size: 14px;
          }

          &.reward {
            color: #ff4d4f;
            font-weight: 600;
            margin-left: auto; // 自动推到右侧
            
            .anticon {
              font-size: 15px;
            }
          }
        }
      }

      .help-footer {
        .ant-btn {
          height: 38px;
          font-size: 14px;
          font-weight: 500;
        }
      }
    }
  }
  
  .pagination-wrapper {
    padding: 24px;
    text-align: center;
    
    .ant-pagination {
      .ant-pagination-item {
        min-width: 48px !important;
        height: 48px !important;
        line-height: 46px !important;
        font-size: 18px !important;
        margin: 0 8px !important;
        border-radius: 4px;
        
        a {
          font-size: 18px !important;
          line-height: 46px !important;
        }
        
        &.ant-pagination-item-active {
          border-width: 2px !important;
          font-weight: 600 !important;
        }
      }
      
      .ant-pagination-prev,
      .ant-pagination-next {
        min-width: 48px !important;
        height: 48px !important;
        line-height: 46px !important;
        margin: 0 8px !important;
        border-radius: 4px;
        
        .ant-pagination-item-link {
          font-size: 18px !important;
          line-height: 46px !important;
        }
      }
      
      .ant-pagination-jump-prev,
      .ant-pagination-jump-next {
        min-width: 48px !important;
        height: 48px !important;
        line-height: 46px !important;
        margin: 0 8px !important;
        
        .ant-pagination-item-container {
          .ant-pagination-item-ellipsis,
          .ant-pagination-item-link-icon {
            font-size: 18px !important;
          }
        }
      }
      
      .ant-pagination-options {
        .ant-pagination-options-quick-jumper {
          height: 48px !important;
          line-height: 48px !important;
          font-size: 18px !important;
          
          input {
            height: 48px !important;
            width: 70px !important;
            font-size: 18px !important;
          }
        }
      }
      
      .ant-pagination-total-text {
        height: 48px !important;
        line-height: 48px !important;
        font-size: 18px !important;
      }
    }
  }
}

// 响应式布局
@media (max-width: 768px) {
  .help-page {
    padding: 16px;

    .page-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;

      .header-left {
        h1 {
          font-size: 24px;
        }
      }
    }

    .filter-content {
      .ant-input-search {
        width: 100% !important;
      }
    }
  }
}

@media (max-width: 576px) {
  .help-page {
    padding: 12px;

    .page-header {
      .header-left {
        h1 {
          font-size: 20px;
        }
      }
    }
  }
}
